import request from '@/utils/request';

/**
 * 查询简报管理列表
 * @param query
 * @returns {*}
 */

export const listBriefing = (query) => {
  return request({
    url: '/system/briefing/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询简报管理详细
 * @param briefingId
 */
export const getBriefing = (briefingId) => {
  return request({
    url: '/system/briefing/' + briefingId,
    method: 'get'
  });
};
/**
 * 查询简报管理详细
 * @param briefingId
 */
export const getBriefingII = (briefingId) => {
  return request({
    url: '/system/largeScreen/briefingDetail/' + briefingId,
    method: 'get'
  });
};

/**
 * 新增简报管理
 * @param data
 */
export const addBriefing = (data) => {
  return request({
    url: '/system/briefing',
    method: 'post',
    data: data
  });
};

/**
 * 修改简报管理
 * @param data
 */
export const updateBriefing = (data) => {
  return request({
    url: '/system/briefing',
    method: 'put',
    data: data
  });
};

/**
 * 删除简报管理
 * @param briefingId
 */
export const delBriefing = (briefingId) => {
  return request({
    url: '/system/briefing/' + briefingId,
    method: 'delete'
  });
};

